import { Http } from '@/utils/http'

/**
 * 获取轮播图数据
 * @param data 
 * @returns 
 */
export function requestBannerList ()  {
    return Http.request({
        url: '/out/banner/getAllBanner',
        method: 'get'
    })
}

/**
 * 通过名称/时间查找轮播图
 * @param data 
 * @returns 
 */
export function requestSearchBannerByNameOrTime (data: any)  {
    return Http.request({
        url: '/out/banner/searchBannerByNameOrTime',
        method: 'POST',
        data: data
    })
}

/**
 * 通过id更新轮播图
 * @param data 
 * @returns 
 */
export function requestUpadtaBannerById (data: any)  {
    return Http.request({
        url: '/banner/updateBannerById',
        method: 'POST',
        data: data
    })
}

/**
 * 根据id删除轮播图
 * @param data 
 * @returns 
 */
export function requestDeleteBannerById (data: any)  {
    return Http.request({
        url: '/banner/deleteBannerById',
        method: 'POST',
        data: data
    })
}
